<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>地址列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="../../css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../css/main.css">
	<link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/member.css">
</head>
<body>
    <header id="header"></header>
    <div class="address-list" id="address_list">
       
    </div>
    <div class="footer" id="footer"></div>
    <script type="text/html" id="saddress_list">
     <%if(rows.length>0){%>
		<ul>
		<%for(var i=0;i<rows.length;i++){%>
            <li>
                <div class="addr-item">
                    <div class="madr-tlt clearfix">
                        <span class="madrt-name"><%=rows[i].consignee %></span>
                        <span class="madrt-phone"><%=rows[i].phone %></span>
                        <p class="addr-detail">
                        <%=rows[i].addProvince %>&nbsp;<%=rows[i].addCity %>&nbsp;<%=rows[i].addDistrict %>&nbsp;<%=rows[i].address %>
                        </p>
                        <div class="addr-opera">
                            <span address_id="<%=rows[i].id %>" class="addr-default"><i class="fa fa-fw <%if(rows[i].defaultAddress==0){%>fa-circle-o<%}else{%>fa-check-circle<%}%>  " aria-hidde="true"></i> 默认地址</span>
                            <span address_id="<%=rows[i].id %>" class="addr-del deladdress fright"><i class="fa fa-fw fa-trash-o" aria-hidde="true"></i> 删除</span>
                            <!-- <span class="addr-edit fright"><i class="fa fa-fw fa-edit" aria-hidde="true"></i> 编辑</span> -->
                        </div>
                    </div>
                </div>
            </li>
		<%}%>
        </ul>
        <%}else{%>
            <div class="no-record">
                暂无记录
            </div>
        <%}%>
		<a class="add_address mt10" href="address_opera.html">添加新地址</a>
	</script>    
    <script type="text/javascript" src="../../js/config.js"></script>
    <script type="text/javascript" src="../../js/zepto.min.js"></script>
    <script type="text/javascript" src="../../js/template.js"></script>
    <script type="text/javascript" src="../../js/common.js"></script>
    <!--<script type="text/javascript" src="../../js/tmpl/common-top.js"></script>-->
    <script type="text/javascript" src="../../js/tmpl/address_list.js"></script>
    <script type="text/javascript" src="../../js/tmpl/footer.js"></script>
</body>
</html>